using UnityEngine;

public class MultiplayerSelectLayer : UILayer
{
	public UITable table;

	public GameObject buttonPrefab;

	public MultiplayerLobbyLayer lobbyLayer;

	public GameObject multiplayerRoomSelect;

	private int buttonIndex;

	private void CreateButton(string text, string methodName)
	{
		GameObject parent = table.gameObject;
		GameObject gameObject = NGUITools.AddChild(parent, buttonPrefab);
		gameObject.name = buttonIndex++.ToString();
		UIButton component = gameObject.GetComponent<UIButton>();
		if (!(component == null))
		{
			component.onClick.Add(new EventDelegate(this, methodName));
		}
	}

	private void OnEnable()
	{
		Ads.instance.hideBanner(false);
	}

	public void FindServer()
	{
		NavigationManager.instance.Push(multiplayerRoomSelect);
	}

	public void StartPassAndPlay()
	{
	}
}
